package com.briup.estore.service.impl;

import java.math.BigInteger;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.briup.estore.bean.Address;
import com.briup.estore.mapper.IAddressMapper;
import com.briup.estore.service.IAddressService;

@Service
public class AddressServiceImpl implements IAddressService {

	@Autowired
	private IAddressMapper addressMapper;

	@Override
	public List<Address> findAddresses(BigInteger customer_id) {

		return addressMapper.selectAddressesNyCustomerId(customer_id);
	}

	@Override
	public int insertAddress(Address address) {
		return addressMapper.insertAddress(address);
	}
}
